export const basicInfos = {
    address: "",
    area: "",
    arrivalName: "",
    arrivalPhone: "",
    arrivalSex: "",
    gift: "",
    id: 0,
    isArrival: false,
    isDeal: false,
    isDel: false,
    name: "",
    phone: "",
    regularCustomer: false,
    reservationStartTime: '',
    reservationEndTime: '',
    detailedAddress: '',
    email: '',
    sex: "男",
    shop: "",
    updateBy: 0,
    updateTime: '',
    websiteSource: '',
    planBuyTime: '1'
}
// 表单验证
export const validateOptions = [
    {
        _ref: 'phone',
        regexp: '',
        key: 'phone'
    },
    {
        _ref: 'name',
        regexp: '',
        key: 'name'
    },
    {
        _ref: 'shop',
        regexp: '',
        key: 'shop'
    },
    {
        _ref: 'area',
        regexp: '',
        key: 'area'
    },
    // {
    //     _ref: 'email',
    //     regexp: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
    //     key: 'email'
    // },
    // {
    //     _ref: 'detailedAddress',
    //     regexp: '',
    //     key: 'detailedAddress'
    // },
    {
        _ref: 'planBuyTime',
        regexp: '',
        key: 'planBuyTime'
    },
    // {
    //     _ref: 'websiteSource',
    //     regexp: '',
    //     key: 'websiteSource'
    // },
    // {
    //     _ref: 'contactAddress',
    //     regexp: '',
    //     key: 'address'
    // }
]

export const validateOptionsEx = [
    {
        _ref: 'date',
        regexp: '',
        key: 'date'
    },
    {
        _ref: 'startTime',
        regexp: '',
        key: 'startTime'
    },
    {
        _ref: 'endTime',
        regexp: '',
        key: 'endTime'
    }
]
export const validateOptionsForCreate = [
    {
        _ref: 'phone',
        regexp: '',
        key: 'phone'
    },
    {
        _ref: 'name',
        regexp: '',
        key: 'name'
    },
    // {
    //     _ref: 'email',
    //     regexp: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
    //     key: 'email'
    // },
    // {
    //     _ref: 'detailedAddress',
    //     regexp: '',
    //     key: 'detailedAddress'
    // },
    {
        _ref: 'planBuyTime',
        regexp: '',
        key: 'planBuyTime'
    },
    // {
    //     _ref: 'contactAddress',
    //     regexp: '',
    //     key: 'address'
    // }
]

export const validateForTreat = [
    // {
    //     _ref: 'email',
    //     regexp: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
    //     key: 'email'
    // },
    // {
    //     _ref: 'detailedAddress',
    //     regexp: '',
    //     key: 'detailedAddress'
    // },
    {
        _ref: 'name',
        regexp: '',
        key: 'name'
    },
    {
        _ref: 'planBuyTime',
        regexp: '',
        key: 'planBuyTime'
    },
]

export const validateForFollowUp = [
    {
        _ref: 'name',
        regexp: '',
        key: 'name'
    },
    {
        _ref: 'arrivalName',
        regexp: '',
        key: 'arrivalName'
    },
    {
        _ref: 'arrivalPhone',
        regexp: '',
        key: 'arrivalPhone'
    },
    {
        _ref: 'shop',
        regexp: '',
        key: 'shop'
    },
    {
        _ref: 'area',
        regexp: '',
        key: 'area'
    },
]
